// 获取全国JSON
export const getChinaJson = (code) => {
    let res = require(`@assets/datavMap/china.json`);
    // (res.features || []).forEach((item,index) => {
    //     item['name'] = item['properties']['name'];
    //     item['code'] = item['properties']['adcode'];
    //     item['level'] = item['properties']['level'];
    // })
    return res;
};

// 获取省JSON
export const getProvinceJSON = (path,code) => {
    let res =  require(`@assets/datavMap/province/${path}_full.json`);
    return res;
}

// 获取市JSON
export const getCityJSON = (path,code) => {
    let res =  require(`@assets/datavMap/city/${path}_full.json`);
    return res;
}
// 获取区/县JSON
export const getDistrictsJSON = (path,code) => {
    let res =  require(`@assets/datavMap/districts/${path}.json`);
    return res;
}

